package com.zx.erp.sys.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者信息
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限id
     */
    @TableId(value = "COMID", type = IdType.AUTO)
    private Integer comid;

    /**
     * 职位id
     */
    @TableField("COMRID")
    private Integer comrid;

    /**
     * 模块id
     */
    @TableField("COMPID")
    private Integer compid;

    /**
     * 状态
     */
    @TableField("COMSTATE")
    private Integer comstate;

    @TableField(exist = false)
    private Module module;
    @TableField(exist = false)
    private Job job;

}
